package com.itgaoshu.service.impl;

import com.itgaoshu.bean.Drugstore;
import com.itgaoshu.mapper.Putinmapper;
import com.itgaoshu.service.PutinService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * \* @author: 李豪杰
 * \* Date: 2021/3/22
 * \* Time: 9:30
 * \* Description:
 * \
 */
@Service
@Transactional
public class PutinServiceImpl implements PutinService {
    @Resource
    private Putinmapper putinmapper;
    @Override
    public int selectNumber(Drugstore drugstore) {//查询库房剩余药品数量
        int result  = putinmapper.selectNumber(drugstore);
        return result;
    }

    @Override
    public int seldrugname(Drugstore drugstore) {
        return putinmapper.seldrugname(drugstore);
    }

    @Override
    public int updrugnumber(Drugstore drugstore) {
        return putinmapper.updrugnumber(drugstore);
    }
}
